import axios from 'axios'
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import '@/components/vant.js'
Vue.config.productionTip = false
axios.interceptors.response.use(
  (response) => {
    console.log('response', response);
    return response;   //response.data
  },
  (err) => {
    return Promise.reject(err);
  }
);
// 百度地图
import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: 'rU3YicPWKlP4MzoXlZO7sq51IITeX5ml'
})
Vue.prototype.$http= axios
new Vue({
  render: h => h(App),
  router
}).$mount('#app')
